package com.bytech.admin.biz.service.systemSetting;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bytech.common.biz.entity.system.SystemSetting;

import java.util.List;

/**
 * @Author Zhao
 * @Create 2021-08-14
 */
public interface SystemSettingService extends IService<SystemSetting> {

    /**
     * 按照版本号排倒序返回某一个 ID 的所有配置版本
     */
    List<SystemSetting> getAll(String settingId);

    SystemSetting getLatest(String settingId);

    SystemSetting getBySettingIdAndVersion(String settingId, Integer version);
}
